<script>
    function regresar() {
        window.history.back();
    }
</script>
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="nav-header">
            <a type="button" href="#" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <a class="navbar-brand" href="#"><?php echo'' ?></a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <?php
                ?>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <?php
                echo '<li>';
                echo '<a onclick="regresar()">Regresar</a>';
                echo '</li>';
                ?>
            </ul>
        </div>
    </div>
</div>
<div class="container">
    <div class="row">
        <div id="left" class="col-lg-2">
        </div>
        <div id="starter-template" class="col-lg-8">
            <?php
            echo form_open('usuario_paciente_controller/guardar_invitado/');
            $btn_grabar_reg = array(
                'type' => 'submit',
                'class' => 'btn btn-sm btn-primary btn-block',
                'value' => 'Grabar y registarse',
            );
            $btn_grabar_no_reg = array(
                'type' => 'submit',
                'class' => 'btn btn-sm btn-primary btn-block',
                'value' => 'Grabar y no registarse',
            );
            $nombres = array('id' => 'nombres', 'name' => 'nombres', 'class' => 'form-control', 'size' => '50', 'value' => '');
            $apellidos = array('id' => 'apellidos', 'name' => 'apellidos', 'class' => 'form-control', 'size' => '50', 'value' => '');
            $cedula = array('id' => 'cedula', 'name' => 'cedula', 'class' => 'form-control', 'size' => '50', 'value' => '');
            $email = array('id' => 'email', 'name' => 'email', 'class' => 'form-control', 'size' => '50', 'value' => '');
            $direccion = array('id' => 'direccion', 'name' => 'direccion', 'class' => 'form-control', 'value' => '');
            $telefono = array('id' => 'telefono', 'name' => 'telefono', 'class' => 'form-control', 'size' => '50', 'value' => '');
            $celular = array('id' => 'celular', 'name' => 'celular', 'class' => 'form-control', 'size' => '50', 'value' => '');
            echo '</br><div class="panel panel-default">';
            echo ' <div class="panel-heading">
    <h3 class="panel-title">Editar</h3>
  </div>';
            echo ' <div class="panel-body">';
            echo '<div class="row-fluid">';
            echo '<div class="col-sm-3">';
            echo '<label class="control-label">Nombres:</label> ';
            echo '</div>';
            echo '<div class="col-sm-9">';
            echo form_input($nombres) . '<br>';
            echo '</div>';
            echo '<div class="col-sm-3">';
            echo '<label class="control-label">Apellidos:</label> ';
            echo '</div>';
            echo '<div class="col-sm-9">';
            echo form_input($apellidos) . '<br>';
            echo '</div>';
            echo '<div class="col-sm-3">';
            echo '<label class="control-label">Cédula:</label> ';
            echo '</div>';
            echo '<div class="col-sm-9">';
            echo form_input($cedula) . '<br>';
            echo '</div>';
            echo '<div class="col-sm-3">';
            echo '<label class="control-label">Email:</label> ';
            echo '</div>';
            echo '<div class="col-sm-9">';
            echo form_input($email) . '<br>';
            echo '</div>';
            echo '<div class="col-sm-3">';
            echo '<label class="control-label">Teléfono:</label> ';
            echo '</div>';
            echo '<div class="col-sm-9">';
            echo form_input($telefono) . '<br>';
            echo '</div>';
            echo '<div class="col-sm-3">';
            echo '<label class="control-label">Celular:</label> ';
            echo '</div>';
            echo '<div class="col-sm-9">';
            echo form_input($celular) . '<br>';
            echo '</div>';
            echo '<div class="col-sm-3">';
            echo '<label class="control-label">Dirección:</label> ';
            echo '</div>';
            echo '<div class="col-sm-9">';
            echo form_textarea($direccion) . '<br>';
            echo '</div>';
            echo '</div>';
            echo '</div>';
            echo '</div>';
            echo '<div class="panel panel-default">';
            echo ' <div class="panel-body">';
            echo '<div class="input-group">';
            echo form_submit($btn_grabar_reg);
            echo form_close();
            echo form_open('usuario_paciente_controller/guardar_invitado1/');
            echo form_submit($btn_grabar_no_reg);
            echo form_close();
            echo '</div>';
            echo '</div>';
            echo '</div>';
            ?>
        </div>
        <div id="right" class="col-lg-2"></div>
    </div>
</div>
